﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Tracy.DataModel;
using SharedLib.Helpers;
using SharedLib.BasicServices.Plugin.Configuration;
using SharedLib.BasicServices;
using Tracy.Plugins.DownloadAdapters;
using Tracy.BasicServices;
using Tracy.Messages;
using SharedLib.BasicServices.MessageFramework;


namespace TracyConsole
{
    class Program
    {

        static void Main(string[] args)
        {
            TracyMessageDispatcher messageDispatcher = new TracyMessageDispatcher();
            messageDispatcher.OnException += new EventHandler<SharedLib.Exceptions.ExceptionEventArgs>(messageDispatcher_OnException);
            messageDispatcher.EnqueueMessage(new TaskMessage(null, typeof(TestHandler), null));
        }

        static void messageDispatcher_OnException(object sender, SharedLib.Exceptions.ExceptionEventArgs e)
        {
            Console.WriteLine(e.Message);
        }


    }

    class TestHandler : IAppMessageHandler
    {

        public void ProcessMessage(IAppMessage msg)
        {
            throw new NotImplementedException();
        }
    }
}
